<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
    <title>公众号配置</title>
    <script src="/static/skin.js"></script>
	<link rel="stylesheet" href="/static/basic/plugins/easyui/themes/icon.css" >
	<script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js"></script>
	<script src="/view/weixin/js/baiduTemplate.js"></script>
	<script src="/static/basic/plugins/query/jquery.query.js"></script>
	<script src="/static/basic/plugins/easyui/jquery.easyui.min.js"></script>
	<script src="/static/init.js"></script>
	<script src="/static/basic/plugins/easyui/locale/easyui-lang-zh_CN.js"></script>
	<script charset="utf-8" src="/static/basic/plugins/kindeditor-4.1.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="/static/basic/plugins/kindeditor-4.1.1/lang/zh_CN.js"></script>
	<script src="/static/basic/plugins/plupload-2.1.9/js/plupload.full.min.js"></script>
	<script charset="utf-8" src="/static/plupload-v0.2.js"></script>
	<style type="text/css">
			.img-thumbnail{
				height:100px;
				width:100px;
			}
			.input-group {
			    border-collapse: separate;
			    display: table;
			    position: relative;
			}
			.multi-img-details .multi-item{
				float: left;
			    margin-right: 18px;
			    max-width: 150px;
			    position: relative;
			}
	</style>
</head>
<body>
<div class="easyui-layout" data-options="fit:true"  >
	<div data-options="region:'center'" >
	<form id="form0">
		<div style="margin-bottom:20px">
			<input type="hidden" name="id" value="">
			<input label="AppID(公众平台-开发-基本配置)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="prompt:'请输入AppID'" name="appid" class="easyui-textbox"/>
		</div>
		<div style="margin-bottom:20px">
			<input label="AppSecret(公众平台-开发-基本配置)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="prompt:'请输入AppSecret'" name="appsecret" class="easyui-textbox"/>
		</div>
		<div style="margin-bottom:20px">
			<input label="Token(公众平台-开发-基本配置)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="prompt:'请输入Token'" name="token" class="easyui-textbox"/>
		</div>
		<div style="margin-bottom:20px">
			<input label="商户号(公众平台-微信支付-商户信息)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="prompt:'请输入商户号'" name="mch_id" class="easyui-textbox"/>
		</div>
		<div style="margin-bottom:20px">
			<input label="支付API密钥(商户平台-账户中心-API安全-设置密钥)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="prompt:'请输入支付API密钥'" name="mch_key" class="easyui-textbox"/>
		</div>
		<div style="margin-bottom:20px">
			<input type="hidden" name="account_qrcode" >
			<label>二维码</label>
			<a href="javascript:void(0)" id="openuploadButton" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'">上传图片</a>
		</div>
		<div id="picture" class="input-group multi-img-details" style="height:100px;">
		</div>
		<div style="margin-bottom:20px">
			<input type="hidden" name="apiclient_cert" >
			<input label="支付证书(商户平台>账户中心>API安全>支付配置>支付授权目录)" labelPosition="top" labelAlign="left" style="width:50%;"  type="text" data-options="readonly:true,prompt:'请上传支付证书'" id="cert_name" name="cert_name" class="easyui-textbox"/>
			<a href="javascript:void(0)" id="pickfiles" class="easyui-linkbutton" data-options="">选择本地文件</a>
			<a href="javascript:void(0)" id="uploadfiles" class="easyui-linkbutton" data-options="">开始上传</a>
		</div>
		<div id="cert" class="input-group multi-img-details" style="display:none;">
		<span id="certFileName" class="img-responsive img-thumbnail"></span>
		<em class="close" title="删除证书" onclick="deleteCert(this)">×</em>
		</div>
	</form>
	    <div class="easyui-panel" title="微信公众号设置" data-options="">
	        <div>
		        <label>微信公众平台登录地址</label>
		        <p>https://mp.weixin.qq.com/</p>
		        <label >开发-基本配置-URL(服务器地址)</label>
		        <p id="url"></p>
		        <label>设置-公众号设置-功能设置-业务域名\JS接口安全域名\网页授权域名</label>
		        <p>www.lvzhi.com</p>
		        
		        <label>微信支付商户平台登录地址</label>
		        <p>https://pay.weixin.qq.com/index.php/</p>
		        <label>商户平台>产品中心>开发配置>支付配置>支付授权目录</label>
		        <p>http://www.lvzhi.com/view/weixin/mall/pay/</p>
		        <label>支付证书下载</label>
		        <p>商户平台>账户中心>API安全>支付配置>支付授权目录</p>
		    </div>
	    </div>
	</div>
	<div data-options="region:'north'" >
		<a href="javascript:void(0)" id="saveButton" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'">保存</a>
	</div>
</div>
<div id="dd"></div>
<script id="t_2" type="text/html">
<%for(var i=0;i<data.length;i++){%>
<div class="multi-item">
	<img item_id="<%=data[i].item_id%>" src="<%=data[i].access_url%>" class="img-responsive img-thumbnail">
	<em item_id="<%=data[i].item_id%>" class="close" title="删除这张图片" onclick="deletePicture(this)">×</em>
</div>
<%}%>
</script>
<script src="/view/sys/wx_account/edit.js"></script>
</body>
</html>